SftTree/OCX 7.0

SftTreeCell.GetContentWindow Method

Softel vdm, Inc.

Retrieves the content window attached to the cell.

Syntax       

VB.NET

object.GetContentWindow(ByRef Window As Integer, ByRef Style As SftTreeContentWindowStyleConstants)

VB

object.GetContentWindow(Window As OLE_HANDLE, Style As SftTreeContentWindowStyleConstants)

C#.NET

void object.GetContentWindow(out int Window, out SftTreeContentWindowStyleConstants Style);

VC++

HRESULT object->GetContentWindow(OLE_HANDLE* Window, enum SftTreeContentWindowStyleConstants* Style);

C

HRESULT object->raw_GetContentWindow(OLE_HANDLE* Window, enum SftTreeContentWindowStyleConstants* Style);

Delphi

procedure object.GetContentWindow(out Window : Cardinal, out Style : TOleEnum);

object

A SftTreeCell object.

Window

Returns the window handle of the window used for the cell as a content window. Returns NULL/Nothing if the cell does not have a content window.

Style

Returns the current options defined for the content window. Values of the following tables can be combined:

Name

Value

Description

contentWindowSftTreeNone

0

None - No special handling.

contentWindowSftTreeKeepDisabled

1

Keep Disabled - The content window is always disabled. A content window is normally enabled and disabled as it is made visible or hidden. When contentWindowSftTreeKeepDisabled is specified, the content window is always disabled, even when it is visible.

contentWindowSftTreeKeepSize

2

Keep Size (Variable Height Tree Control) - The original size of the content window is preserved and the cell size adjusts accordingly. While a column can still be smaller or larger than the content window width, the content window is not resized, it is merely clipped. Without contentWindowSftTreeKeepSize, a content window is resized in height and width to fit within the cell. contentWindowSftTreeKeepSize has no effect in a fixed height tree control.

Comments

The GetContentWindow method retrieves the content window attached to the cell.

The Cell.AttachContentWindow method can be used to attach a content window to a cell.

See Also  SftTreeCell Object | Object Hierarchy


Feedback / comments / error reports for this topic
© 2015 - Softel vdm, Inc. - www.softelvdm.com